<?php
$tdatagioithieu=array();
	$tdatagioithieu[".NumberOfChars"]=80; 
	$tdatagioithieu[".ShortName"]="gioithieu";
	$tdatagioithieu[".OwnerID"]="";
	$tdatagioithieu[".OriginalTable"]="gioithieu";


	
//	field labels
$fieldLabelsgioithieu = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsgioithieu["English"]=array();
	$fieldToolTipsgioithieu["English"]=array();
	$fieldLabelsgioithieu["English"]["noidung"] = "Noidung";
	$fieldToolTipsgioithieu["English"]["noidung"] = "";
	$fieldLabelsgioithieu["English"]["hinhanh"] = "Hinhanh";
	$fieldToolTipsgioithieu["English"]["hinhanh"] = "";
	$fieldLabelsgioithieu["English"]["motangangon"] = "Motangangon";
	$fieldToolTipsgioithieu["English"]["motangangon"] = "";
	if (count($fieldToolTipsgioithieu["English"])){
		$tdatagioithieu[".isUseToolTips"]=true;
	}
}


	
	$tdatagioithieu[".NCSearch"]=true;

	

$tdatagioithieu[".shortTableName"] = "gioithieu";
$tdatagioithieu[".nSecOptions"] = 0;
$tdatagioithieu[".recsPerRowList"] = 1;	
$tdatagioithieu[".tableGroupBy"] = "0";
$tdatagioithieu[".mainTableOwnerID"] = "";
$tdatagioithieu[".moveNext"] = 1;




$tdatagioithieu[".showAddInPopup"] = false;

$tdatagioithieu[".showEditInPopup"] = false;

$tdatagioithieu[".showViewInPopup"] = false;


$tdatagioithieu[".fieldsForRegister"] = array();

$tdatagioithieu[".listAjax"] = false;

	$tdatagioithieu[".audit"] = false;

	$tdatagioithieu[".locking"] = false;
	
$tdatagioithieu[".listIcons"] = true;
$tdatagioithieu[".edit"] = true;
$tdatagioithieu[".inlineEdit"] = true;
$tdatagioithieu[".view"] = true;

$tdatagioithieu[".exportTo"] = true;

$tdatagioithieu[".printFriendly"] = true;

$tdatagioithieu[".delete"] = true;

$tdatagioithieu[".showSimpleSearchOptions"] = false;

$tdatagioithieu[".showSearchPanel"] = true;


$tdatagioithieu[".isUseAjaxSuggest"] = true;

$tdatagioithieu[".rowHighlite"] = true;


// button handlers file names

$tdatagioithieu[".addPageEvents"] = false;

$tdatagioithieu[".arrKeyFields"][] = "hinhanh";

// use datepicker for search panel
$tdatagioithieu[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatagioithieu[".isUseTimeForSearch"] = false;

$tdatagioithieu[".isUseiBox"] = false;



$tdatagioithieu[".isUseInlineAdd"] = true;

$tdatagioithieu[".isUseInlineEdit"] = true;
$tdatagioithieu[".isUseInlineJs"] = $tdatagioithieu[".isUseInlineAdd"] || $tdatagioithieu[".isUseInlineEdit"];

$tdatagioithieu[".allSearchFields"] = array();

$tdatagioithieu[".globSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatagioithieu[".allSearchFields"]))
{
	$tdatagioithieu[".allSearchFields"][] = "hinhanh";	
}


$tdatagioithieu[".googleLikeFields"][] = "hinhanh";



$tdatagioithieu[".advSearchFields"][] = "noidung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noidung", $tdatagioithieu[".allSearchFields"])) 
{
	$tdatagioithieu[".allSearchFields"][] = "noidung";	
}
$tdatagioithieu[".advSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatagioithieu[".allSearchFields"])) 
{
	$tdatagioithieu[".allSearchFields"][] = "hinhanh";	
}
$tdatagioithieu[".advSearchFields"][] = "motangangon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("motangangon", $tdatagioithieu[".allSearchFields"])) 
{
	$tdatagioithieu[".allSearchFields"][] = "motangangon";	
}

$tdatagioithieu[".isTableType"] = "list";


	

$tdatagioithieu[".isDisplayLoading"] = true;

$tdatagioithieu[".isResizeColumns"] = false;





$tdatagioithieu[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatagioithieu[".strOrderBy"] = $gstrOrderBy;
	
$tdatagioithieu[".orderindexes"] = array();

$tdatagioithieu[".sqlHead"] = "SELECT noidung,  hinhanh,  motangangon";
$tdatagioithieu[".sqlFrom"] = "FROM gioithieu";
$tdatagioithieu[".sqlWhereExpr"] = "";
$tdatagioithieu[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatagioithieu[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatagioithieu[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "hinhanh";
	$tdatagioithieu[".Keys"] = $tableKeys;

//	noidung
	$fdata = array();
	$fdata["strName"] = "noidung";
	$fdata["ownerTable"] = "gioithieu";
		$fdata["Label"]="Noidung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noidung";
	
		$fdata["FullName"]= "noidung";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 1;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagioithieu["noidung"]=$fdata;
//	hinhanh
	$fdata = array();
	$fdata["strName"] = "hinhanh";
	$fdata["ownerTable"] = "gioithieu";
		$fdata["Label"]="Hinhanh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinhanh";
	
		$fdata["FullName"]= "hinhanh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagioithieu["hinhanh"]=$fdata;
//	motangangon
	$fdata = array();
	$fdata["strName"] = "motangangon";
	$fdata["ownerTable"] = "gioithieu";
		$fdata["Label"]="Motangangon"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "motangangon";
	
		$fdata["FullName"]= "motangangon";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagioithieu["motangangon"]=$fdata;

	
$tables_data["gioithieu"]=&$tdatagioithieu;
$field_labels["gioithieu"] = &$fieldLabelsgioithieu;
$fieldToolTips["gioithieu"] = &$fieldToolTipsgioithieu;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["gioithieu"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["gioithieu"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto72=array();
$proto72["m_strHead"] = "SELECT";
$proto72["m_strFieldList"] = "noidung,  hinhanh,  motangangon";
$proto72["m_strFrom"] = "FROM gioithieu";
$proto72["m_strWhere"] = "";
$proto72["m_strOrderBy"] = "";
$proto72["m_strTail"] = "";
$proto73=array();
$proto73["m_sql"] = "";
$proto73["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto73["m_column"]=$obj;
$proto73["m_contained"] = array();
$proto73["m_strCase"] = "";
$proto73["m_havingmode"] = "0";
$proto73["m_inBrackets"] = "0";
$proto73["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto73);

$proto72["m_where"] = $obj;
$proto75=array();
$proto75["m_sql"] = "";
$proto75["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto75["m_column"]=$obj;
$proto75["m_contained"] = array();
$proto75["m_strCase"] = "";
$proto75["m_havingmode"] = "0";
$proto75["m_inBrackets"] = "0";
$proto75["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto75);

$proto72["m_having"] = $obj;
$proto72["m_fieldlist"] = array();
						$proto77=array();
			$obj = new SQLField(array(
	"m_strName" => "noidung",
	"m_strTable" => "gioithieu"
));

$proto77["m_expr"]=$obj;
$proto77["m_alias"] = "";
$obj = new SQLFieldListItem($proto77);

$proto72["m_fieldlist"][]=$obj;
						$proto79=array();
			$obj = new SQLField(array(
	"m_strName" => "hinhanh",
	"m_strTable" => "gioithieu"
));

$proto79["m_expr"]=$obj;
$proto79["m_alias"] = "";
$obj = new SQLFieldListItem($proto79);

$proto72["m_fieldlist"][]=$obj;
						$proto81=array();
			$obj = new SQLField(array(
	"m_strName" => "motangangon",
	"m_strTable" => "gioithieu"
));

$proto81["m_expr"]=$obj;
$proto81["m_alias"] = "";
$obj = new SQLFieldListItem($proto81);

$proto72["m_fieldlist"][]=$obj;
$proto72["m_fromlist"] = array();
												$proto83=array();
$proto83["m_link"] = "SQLL_MAIN";
			$proto84=array();
$proto84["m_strName"] = "gioithieu";
$proto84["m_columns"] = array();
$proto84["m_columns"][] = "noidung";
$proto84["m_columns"][] = "hinhanh";
$proto84["m_columns"][] = "motangangon";
$obj = new SQLTable($proto84);

$proto83["m_table"] = $obj;
$proto83["m_alias"] = "";
$proto85=array();
$proto85["m_sql"] = "";
$proto85["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto85["m_column"]=$obj;
$proto85["m_contained"] = array();
$proto85["m_strCase"] = "";
$proto85["m_havingmode"] = "0";
$proto85["m_inBrackets"] = "0";
$proto85["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto85);

$proto83["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto83);

$proto72["m_fromlist"][]=$obj;
$proto72["m_groupby"] = array();
$proto72["m_orderby"] = array();
$obj = new SQLQuery($proto72);

$queryData_gioithieu = $obj;
$tdatagioithieu[".sqlquery"] = $queryData_gioithieu;

$tableEvents["gioithieu"] = new eventsBase;

?>
